/*
 *  maptest.c
 *  OpenGL-PingPongCpp
 *
 *  Created by wu di on 12-7-7.
 *  Copyright 2012 UTS. All rights reserved.
 *
 */

#include "maptest.h"


#include <stdio.h>
#include <math.h>
#include <stdlib.h>

#define row 14
#define column 10

//#define maptest main

int maptest(int argc,char **argv)
{
	int map[row][column] = {0};
	
	int i=0;
	int j=0;
	
	for(i=0;i<row;i++)
    {
		for(j = 0;j<column;j++)
        {
			if(i == 0||i == row - 1)
				map[i][j] = 2;
			if(j == 0||j == column  - 1)
				map[i][j] = 2;
        }
    }
	
	
	for(i=0;i<row;i++)
    {
		for(j = 0;j<column;j++)
        {
			printf("%d ",map[i][j]);
        }
		printf("\n");
    }
	return 0;
}

